package cn.project.lemontree.service.impl;

import cn.project.lemontree.bean.Sign_in;
import cn.project.lemontree.dao.Sign_inDao;
import cn.project.lemontree.service.Sign_inService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class Sign_inServiceImpl extends ServiceImpl<Sign_inDao,Sign_in> implements Sign_inService {
    @Resource
    private  Sign_inDao sign_inDao;
    @Override
    public List<Sign_in> listPage(int page, int size, String parentName) {
        return sign_inDao.listPage((page-1)*size,size,parentName);
    }

    @Override
    public int count(String parentName) {
        return sign_inDao.count(parentName);
    }

    @Override
    public boolean save(Sign_in signIn) {
        return sign_inDao.save(signIn)>0;
    }
}
